package util;

import java.awt.Image;
import java.awt.image.ImageObserver;

public class ImageWrapper {

	private Image img;
	private int x, y, width, height;

	public ImageWrapper (Image img, int x, int y, int width, int height) {
		this.img = img;
		this.x = x;
		this.y = y;
		this.width = width;
		this.height = height;
	}

	public ImageWrapper (Image img, int width, int height) {
		this(img, 0, 0, width, height);
	}

	public ImageWrapper (Image img, int x, int y, ImageObserver obs) {
		this(img, x, y, img.getWidth(obs), img.getHeight(obs));
	}

	public ImageWrapper (Image img, ImageObserver obs) {
		this(img, 0, 0, img.getWidth(obs), img.getHeight(obs));
	}

	public Image getImage () {
		return img;
	}

	public int getX () {
		return x;
	}

	public int getY () {
		return y;
	}

	public int getWidth () {
		return width;
	}

	public int getHeight () {
		return height;
	}

}
